<?php
header("content-type:text/html;charset=utf-8");
include_once ("conn.php");
//$id=$_POST['id'];
$researchname=$_POST['researchname'];
$researchtime=$_POST['researchtime'];
$researchclass=$_POST['researchclass'];
//$content=$_POST['lasdate'];
if ($_POST['submit']=="提交"){
    $sql="insert into research(researchname,researchtime,researchclass) values('$researchname','$researchtime','$researchclass')";
    mysqli_query($conn,$sql);
//   echo $sql;
    echo "<script>alert('添加成功');location.href='researchlist.php';</script>";
}
//else{
//    echo "<script>alert('添加失败');</script>";
//}
?>
